import React from 'react'
import  ReactDOM from 'react-dom'
import App from './App'
import store from './redux/store'
ReactDOM.render(<App/>, document.getElementById('root'))

//检查redux中的状态变化，只要变化，调用render
store.subscribe(()=>{
    ReactDOM.render(<App/>, document.getElementById('root'))
})

